package org.example.client.messagehandler.auth;

import com.alibaba.fastjson2.JSON;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.example.client.message.auth.AuthResponse;
import org.example.common.dispacher.MessageHandler;
import org.springframework.stereotype.Component;

/**
 * client - 认证结果处理器
 * @time 2025/6/16 23:36
 */
@Component
@Slf4j
public class AuthResponseHandler implements MessageHandler<AuthResponse> {
    @Override
    public void execute(Channel ch, AuthResponse message) {
        log.info("[client] [AuthResponseHandler] [execute] message:{}", JSON.toJSONString(message));
    }

    @Override
    public String getType() {
        return AuthResponse.TYPE;
    }
}
